{extend name="public/base" /} {block name="css"}
<link rel="stylesheet" href="__INDEX__/css/create-index.css"> {/block} {block name="container"}
<style>
.form-groups{width:33.3%}
.form-group{width:100%;}
.col-sm-12{padding:0px;}
.imgSelf{height:width !important;margin: 15px 0;display: block;overflow: hidden;box-sizing: border-box;border-radius: 50%;}
#table tr:nth-child(odd){background: #F9F9F9}
#table tr:nth-child(odd)>td>input{background: #F9F9F9 !important;}
#table tr:nth-child(event){background: #fff}
#table td{border:0px;text-align: left;color: #000;padding-left: 5px;padding-right: 5px;height: 30px;}
#table input{width: 100%;text-align: left;color: #000;font-size: 13px;}
th{text-align: center;height: 30px;}
#info_box tr{height: 30px;}
#info_box tr:nth-child(odd){background: #F9F9F9;height: 30px;}
#info_box td{border:0px;}
</style>
<div>
    <form action="" method="post" enctype="multipart/form-data">
        <div class="panel-body panel-body-nopadding" id="print" style="background: #ECF0F5">
            <label class="col-sm-12 control-label" style="background: #ECF0F5;text-align: left;color: #000;height: 38px;padding-left: 30px;line-height: 38px;font-size: 16px;">员工档案
            </label>

            <div class="container_left col-sm-3" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;margin-bottom: 20px;">
                <div class="form-group">
                    <div class="col-sm-12" >
                        <div class="col-sm-3"></div><!-- 占位 -->
                        <img class="imgSelf col-sm-6" src="{$data.picurl}" alt="">
                    </div>
                    <div class="col-sm-12" style="text-align: center;font-size: 15px;color: #000;">{$data.name ?? ''}&emsp;[P3]</div>
                    <div class="col-sm-12" style="text-align: center;font-size: 12px;color: #AF948F;margin-bottom: 10px;">入职时间：{$data.rz_time ?? ''}</div>
                    <table class="col-sm-12" id="table">
                        <tr class="col-sm-12">
                            <td class="col-sm-4">曾用名：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.cy_name ?? '暂无'}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">性别：</td>
                            <td class="col-sm-8"><input type="text" {if condition="$data['sex'] eq 1"} value="男" {else /} value="女" {/if}></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">年龄：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.age ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">名族：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.mingzu ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">身高：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.height ?? ''}cm"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">血型：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.blood ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">婚否：</td>
                            <td class="col-sm-8"><input type="text" {if condition="$data['marry'] eq 1"} value="已婚" {else /} value="未婚" {/if}></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">驾照：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.driving ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">政治面貌：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.zhengzhi ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">出生日期：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.birthday ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">毕业时间：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.by_time ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">从业时间：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.cy_time ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">技术职称：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.js_zhicheng ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">身份证号：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.sf_num ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">毕业院校：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.by_school ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">专业：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.major ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">学历：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.xueli ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">外语水平：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.waiyu ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">联系电话：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.phone ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">qq号码：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.qq_num ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">联系邮箱：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.email ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">兴趣及专长：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.xingqu ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">籍贯：</td>
                            <td class="col-sm-8"><input type="text" value="{$data.jiguan ?? ''}"></td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">户口所在地：</td>
                            <td class="col-sm-8">{$data.hk_from ?? ''}</td>
                        </tr>
                        <tr class="col-sm-12">
                            <td class="col-sm-4">现住址：</td>
                            <td class="col-sm-8">{$data.address ?? ''}</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="container_left col-sm-8" style="margin-bottom: 20px;margin-left: 50px;">
                <div class="form-group" id="info_box" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;min-height: 100px;">
                    <div class="col-sm-12" style="height: 30px;line-height: 30px;font-size: 16px;">现任职信息情况</div>
                    <table class="col-sm-12" >
                        <tr>
                            <th>单位</th>
                            <th>部门</th>
                            <th>职务</th>
                            <th>职务级别</th>
                            <th>岗位级别</th>
                            <th>行政级别</th>
                        </tr>
                        <tr>
                            <td>西安翔宇丹服饰有限公司</td>
                            <td>{$data.bumen ?? ''}</td>
                            <td>{$data.zhiwei ?? ''}</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                        </tr>
                    </table>
                </div>

                <div class="form-group" id="info_box" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;min-height: 200px;">
                    <div class="col-sm-12" style="height: 30px;line-height: 30px;font-size: 16px;">家庭主要成员情况</div>
                    <table class="col-sm-12" >
                        <tr>
                            <th>姓名</th>
                            <th>关系</th>
                            <th>工作岗位</th>
                            <th>联系方式</th>
                        </tr>
                        <?php for($i=0;$i < count($family['name']);$i++){?>
                        <tr>
                            <td>{$family['name'][$i]}</td>
                            <td>{$family['guanxi'][$i]}</td>
                            <td>{$family['company'][$i]}</td>
                            <td>{$family['phone'][$i]}</td>
                        </tr>
                       <?php }?>
                    </table>
                </div>

                <div class="form-group" id="info_box" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;min-height: 180px;margin-top: 20px;">
                    <div class="col-sm-12" style="height: 30px;line-height: 30px;font-size: 16px;">教育经历(从初中起)</div>
                    <table class="col-sm-12" >
                        <tr>
                            <th>起止年月</th>
                            <th>院校、专业</th>
                            <th>毕(结、肄)业</th>
                            <th>证明人</th>
                        </tr>
                        <?php for($i = 0 ;$i < count($education['kaishi']);$i++){?>
                        <tr>
                            <td>{$education['kaishi'][$i]}~~{$education['jieshu'][$i]}</td>
                            <td>{$education['school'][$i]}({$education['zhuanye'][$i]})</td>
                            <td>{$education['biye'][$i]}</td>
                            <td>{$education['zhengming'][$i]}</td>
                        </tr>
                        <?php }?>
                    </table>
                </div>

                <div class="form-group" id="info_box" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;min-height: 250px;margin-top: 20px;">
                    <div class="col-sm-12" style="height: 30px;line-height: 30px;font-size: 16px;">工作经历</div>
                    <table class="col-sm-12" >
                        <tr>
                            <th>起止年月</th>
                            <th>单位</th>
                            <th>职务</th>
                            <th>证明人</th>
                        </tr>
                        <?php for($i = 0; $i < count($work['kaishi']); $i++){?>
                        <tr>
                            <td>{$work['kaishi'][$i]}~~{$work['jieshu'][$i]}</td>
                            <td>{$work['company'][$i]}</td>
                            <td>{$work['zhiwei'][$i]}</td>
                            <td>{$work['zhengming'][$i]}</td>
                        </tr>
                        <?php }?>
                    </table>
                </div>

                <div class="form-group" id="info_box" style="background: #FFFFFF;box-sizing: border-box;border-top: 2px solid #388BBB;box-shadow: 0 0 5px #ccc;min-height: 150px;margin-top: 20px;">
                    <div class="col-sm-12" style="height: 30px;line-height: 30px;font-size: 16px;">紧急联系人</div>
                    <table class="col-sm-12" >
                        <tr>
                            <th>姓名</th>
                            <th>关系</th>
                            <th>单位</th>
                            <th>联系电话</th>
                           <!--  <th>住址</th> -->
                        </tr>
                        <?php for($i = 0; $i < count($contact['name']);$i++ ){?>
                        <tr>
                            <td>{$contact['name'][$i]}</td>
                            <td>{$contact['guanxi'][$i]}</td>
                            <td>{$contact['gongzuo'][$i]}</td>
                            <td>{$contact['phone'][$i]}</td>
                           <!--  <td>陕西省西安市长安区郭杜镇</td> -->
                        </tr>
                        <?php }?>
                    </table>
                </div>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <input type="hidden" name="id" value="">
                        <button type="button" class="btn btn-primary" onclick="javascript:history.back(-1);" style="margin:0 20px;">返回</button>
                    </div>
                </div>
            </div>
            <!-- panel-footer -->
        </div>
    </form>
</div>
                                                    

{/block} {block name="js"}
<script>
    function printHTML(page) {
        var bodyHTML = window.document.body.innerHTML;
        window.document.body.innerHTML = $(page).html();
        window.print();
        window.document.body.innerHTML = bodyHTML;
    }
</script>
<script>
    function getRegion(val, level) {
        var $city = $("#city");
        var $area = $("#area");
        $.post('{:url('index / common / getRegion')}', { pcode: val, level: level }, function (data) {
            var dataObj = eval("(" + data + ")");//转换为json对象   
            if (dataObj['code'] == 1) {
                if (level == '1') {
                    $.each(dataObj['list'], function (i, item) {
                        $city.append('<option value="' + item['code'] + '">' + item['name'] + '</option>');
                    });
                } else {
                    $.each(dataObj['list'], function (i, item) {
                        $area.append('<option value="' + item['code'] + '">' + item['name'] + '</option>');
                    });
                }
            }
        });
    }
</script>
<script>
    function getInfo(val) {
        var $user_id = $('#user_id');
        $.post('{:url('index / common / getInfo')}', { id: val }, function (data) {
            var dataObj = eval("(" + data + ")");//转换为json对象  
            if (dataObj['code'] == 1) {
                $.each(dataObj['list'], function (i, item) {
                    $user_id.append('<option value="' + item['id'] + '">' + item['truename'] + '</option>');
                });
            }
        });
    }
</script>
{/block}
